﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcAppCondominio.ViewData.ResidenteViewData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Mantenimiento de Residentes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Customers</h2>
    <ul>
    <% foreach (var residente in ViewData.Model.Residentes) { %>
    <li>
        <%= Html.ActionLink(residente.C_NumDocume + " - " + residente.C_Nombre + " " + residente.C_Apellidos,
                                       "Details", new { id = residente.N_IdResidente })%>
        <%=Html.ActionLink("(Editar)", "Edit", "Residente", new { residente.N_IdResidente }, null)%>
        <%=Html.ActionLink("(Eliminar)", "Delete", "Residente", new { residente.N_IdResidente }, null)%>
    </li>
    <% } %>
    </ul>
    <%=Html.ActionLink("<< Previous Page", "Index", new { page = ViewData.Model.PreviousPage }) %>&nbsp;&nbsp;&nbsp;&nbsp   
    <%=Html.ActionLink("Next Page >>", "Index", new { page = ViewData.Model.NextPage }) %>
    <br />
    <%=Html.ActionLink("Añadir Nuevo Residente", "Create", "Residente", null, null)%>    


    <h3><%: ViewData["Message"] %></h3>
</asp:Content>
